package com.wutma.friend.domain.question.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

@Data
//@Document(indexName = "idx_question")
public class QuestionESVO {

//    @Id
//    @Field(type = FieldType.Keyword)
    private Long questionId;

//    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String title;

//    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String content;

//    @Field(type = FieldType.Text)
    private String defaultCode;

//    @Field(type = FieldType.Text)
    private String mainFuc;

//    @Field(type = FieldType.Text)
    private String questionCase;

//    @Field(type = FieldType.Long)
    private Long timeLimit;

//    @Field(type = FieldType.Long)
    private Long spaceLimit;

//    @Field(type = FieldType.Byte)
    private Integer difficulty;

//    @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
